package wwl.lsf.hellospringboot.鲁班.并发;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class AQSTest {

  private Lock lock = new ReentrantLock();

  public void print() {

    try {
      lock.lock();
      System.out.println("打印一下呗");
    } finally {
      lock.unlock();
    }
  }

  public static void main(String[] args) {
    AQSTest aqsTest = new AQSTest();



  }
}
